
import java.io.PrintWriter;
import java.util.HashMap;

class FuncType extends Type {

	private String name_;

	public FuncType(String string) {
		name_ = string;
	}
	public String getType(){
		return name_;
	}

	@Override
	public void print(PrintWriter pw) {
		pw.println("Node name : FuncType");
		pw.println("Type is : " + name_);
	}
	public String translate(HashMap<String, PrintWriter> pws, String condition, SymbolTable rt, String parent){
		String key = rt.getStack().get(1);
		PrintWriter pw = pws.get(key);
	//	pw.print("def");
		pw.print(name_);
		return null;
	}
	@Override
	public String getName() {
		return this.name_;
	}

}
